package com.xly.webclick.error;

import android.content.Context;
import android.widget.Toast;

import com.xly.webclick.R;

/**
 * Created by xuleyuan on 2018/8/19
 */

public class ApiException extends RuntimeException {

    private static final int NOT_404_FOUND = -1;

    private static final int NO_DATA = -2;

    private final int code;

    private static final int ALREADY_LOGIN = 401;
    private static final int EMAIL_FORMAT_ERROR = 402;
    private static final int EMAIL_HAS_REGIEST = 403;
    private static final int USERNAME_HAS_REGIEST = 404;
    private static final int USERNAME_FORMAT_ERROR = 405;
    private static final int PSW_FORMAT_ERROR = 406;
    private static final int CREATE_USER_ERROR = 407;
    private static final int FCM_TOKEN_ERROR = 408;
    private static final int NOT_THIS_USERNAME = 409;
    private static final int PASSWORD_ERROR = 410;
    private static final int not_this_email_in_system = 411;
    private static final int slug_error = 412;
    private static final int id_error = 413;
    private static final int page_num_error = 414;
    private static final int no_enter = 415;
    private static final int old_psw_error = 416;
    private static final int not_this_video = 417;
    private static final int un_prasie_ok = 418;
    private static final int prasie_ok = 419;
    public static final int no_data = 420;
    private static final int not_permission = 421;
    private static final int music_not_online = 422;
    private static final int not_this_music = 423;
    private static final int cant_push_Notification = 424;
    private static final int new_version = 430;
    public static final int bind_ins_error = 433;

    public ApiException(int resultCode, String resultmsg) {
        super(resultmsg);
        code = resultCode;
    }


    public int getCode() {
        return code;
    }

   
}
